from rest_framework import serializers

from cart.models import CartModel
from goods.goodsser import GoodsSerializer


class CartSerializer(serializers.ModelSerializer):

    class Meta:
        model = CartModel
        fields = '__all__'


class CartSer(serializers.ModelSerializer):
    goods = GoodsSerializer(read_only=True)

    class Meta:
        model = CartModel
        fields = '__all__'
